package com.example.administrator.shzs.parse;

import com.alibaba.fastjson.JSON;
import com.example.administrator.shzs.entity.MerchantData.ListBean;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.List;

/**
 * 首页商家   封装实体类
 */
public class ParseIndexXrecycleView {

    public static List<ListBean> getIndexXrecyclView(String json) throws JSONException {


        List<ListBean> list;
        JSONObject jsonObject = new JSONObject(json);
        JSONArray array = jsonObject.getJSONArray("list");
        list = (JSON.parseArray(array.toString(), ListBean.class));

        return list;
    }

}
